<div id="AppType">
    <div class="container">
        <div class="sort text-right">
            <span>排序方式：</span>
            <button type="button" class="btn" ng-class="{'active':sortNum==1}" ng-click="sort(1)">最热</button>
            <button type="button" class="btn" ng-class="{'active':sortNum==2}" ng-click="sort(2)">新品</button>
            <button type="button" class="btn" ng-class="{'active':sortNum==3}" ng-click="sort(3)">评级</button>
        </div>
        <ul class="list-group">
            <li class="list-group-item clearfix" ng-repeat="app in AppsList">
                <div class="pull-left" ui-sref="CloudPlatform.App.Detail({'id':app.id})">
                    <img lazy-src="{{imgApi+app.icon}}" onerror="javascript:this.src='src/imgs/img-fail.png';" alt="图标" width="72" height="72">
                    <div class="userInfo">
                        <span class="appName">{{app.appName}}</span><i class="label" ng-class="{'1': 'label-danger', '0':'label-success'}[app.price?'1':'0']">{{app.price?"付费":"免费"}}</i>
                        <stars ng-init="value=app.starNumber" rating-value="value" max="max" on-hover="onHover" on-leave="onLeave" readonly='false'></stars>
                        <div class="userNum">{{app.userNumber}}人使用</div>
                        <div class="producer">{{app.companyName}}</div>
                        <p class="remark">{{app.remark}}</p>
                    </div>
                </div>
                <div class="pull-right">
                    <button class="btn " ng-click="buyApp(app.id)">添加</button>
                </div>
            </li>
        </ul>
        <div class="page text-center">
            <pagination total-items="totalItems" ng-model="currentPage" ng-change="goPage()" max-size="maxSize" first-text="第一页" previous-text="上一页" next-text="下一页" last-text="最后页" items-per-page="pageSize" boundary-links="true" rotate="false" boundary-link-numbers="true"></pagination>
            <div>
                <span>共{{totalPages}}页&nbsp;&nbsp;&nbsp;&nbsp;到第</span> <input type="text" ng-model="PageNum"/>页
                <button type="button" class="btn btn-default" ng-click="goPage2()">确定</button>
            </div>
        </div>

    </div>

</div>
